
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 菜单路由
const claimDemage = [
  {
    path: '/usedPartsDestructionDealer',
    //path: '/claim',
    meta: { title: '旧件销毁管理', icon: 'el-icon-s-flag' },
    component: RouteView,
    children: [
      {
        path: '/usedPartsDestructionDealer/usedPartsDestroyedApply',
        meta: { title: '旧件销毁申请' },
        component: RouteView,
        children: [
          {
            path: '/usedPartsDestructionDealer/usedPartsDestroyedApply/index',
            meta: { title: '旧件销毁申请', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/usedPartsDestroyedApply/index')
          },
          {
            path: '/usedPartsDestructionDealer/usedPartsDestroyedApplyQuery/index',
            meta: { title: '旧件销毁申请查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/usedPartsDestroyedApplyQuery/index')
          },
          {
            path: '/usedPartsDestructionDealer/DestructionResultsUpload/index',
            meta: { title: '旧件销毁上传', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/DestructionResultsUpload/index')
          },
          {
            path: '/usedPartsDestructionDealer/usedPartsHandover/index',
            meta: { title: '旧件交接记录维护', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/usedPartsHandover/index')
          },
          {
            path: '/usedPartsDestructionDealer/usedPartsToBeDestroyed/index',
            meta: { title: '经销商待销毁旧件查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/usedPartsToBeDestroyed/index')
          },
          {
            path: '/usedPartsDestructionDealer/DestructionResultsQuery/index',
            meta: { title: '旧件销毁上传查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/DestructionResultsQuery/index')
          },
          {
            path: '/usedPartsDestructionDealer/usedPartsHandoverQuery/index',
            meta: { title: '旧件交接记录', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionDealer/usedPartsHandoverQuery/index')
          },
        ]
      }
    ]
  }
];

export default claimDemage;
